package com.project.myBeans;

/**
 * Created by TAO on 2015/10/7.
 */

import java.io.Serializable;

/**
 * <p>Title: EntitySupport.java</p>
 * <p>Description: 所有实体类的父类</p>
 * <p>Copyright: </p>
 * <p>Company: </p>
 * <p>createTime:2012-6-11 下午6:39:39</p>
 *
 * @author xwf
 * @version 1.0
 */
public class EntitySupport implements Serializable {
    private int total;//总计
    private int pageIndex;//页码
    private int pageSize;//每页记录数
    private String sortField;//排序字段
    private String sortOrder;//排序类型
    private boolean noPaging;//是否强制不分页
    private Integer currentUserId;//用户主键
    private Integer currentUserType;//用户类型

    private String keyword;//用于模糊查找的关键词

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getSortField() {
        return sortField;
    }

    public void setSortField(String sortField) {
        this.sortField = sortField;
    }

    public String getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public boolean isNoPaging() {
        return noPaging;
    }

    public void setNoPaging(boolean noPaging) {
        this.noPaging = noPaging;
    }

    public void init(int totpage) {
        this.total = totpage;
    }

    public Integer getCurrentUserId() {
        return currentUserId;
    }

    public void setCurrentUserId(Integer currentUserId) {
        this.currentUserId = currentUserId;
    }

    public Integer getCurrentUserype() {
        return currentUserType;
    }

    public void setCurrentUserType(Integer currentUserType) {
        this.currentUserType = currentUserType;
    }

    public Integer getCurrentUserType() {
        return currentUserType;
    }

}
